package cn.edu.nju.software.util;

public class Constants {
	
	public static final int USER_NORMAL = 0;
	public static final int USER_BLOCKED = 1;
	public static final int USER_DELETED = 2;
	
	public static final int ORDER_SUBMITTED = 0;
	public static final int ORDER_CANCELED = 1;
	public static final int ORDER_DISPATCHED = 2;
	public static final int ORDER_CONFIRMED = 3;
	public static final int ORDER_FAILED = 4;
	
	public static final int SEARCH_SIGNINNAME = 1;
	public static final int SEARCH_NAME = 2;
	
	public static final int SEARCH_ISBN = 0;
	public static final int SEARCH_CATEGORY = 1;
	public static final int SEARCH_DATE = 2;
	public static final int SEARCH_TITLE = 3;
	public static final int SEARCH_AUTHOR = 4;
	public static final int SEARCH_PUBLISHER = 5;
	public static final int SEARCH_USER = 6;
	public static final int SEARCH_ORDER_ID = 7;
	public static final int SEARCH_ORDER_STATUS = 8;
	
	public static final int GOTO_TOP = 0;
	public static final int CANCEL_TOP = 1;
	
	public static final int ROOT_CATEOGRY_ID = 1;
	
	public static final String ADDRESS_SEPARATOR = "!@#";

	public static final String SESSION_MAIN_CATEGORIES = "mainCategories";
	public static final String SESSION_ROOT_CATEGORY = "rootCategories";
	public static final String SESSION_ALL_CATEGORIES = "allCategories";
	
	public static final String SESSION_RAND = "rand";
	public static final String SESSION_USER = "user";
	public static final String SESSION_USERS = "users";
	public static final String SESSION_BOOKS = "books";
	public static final String SESSION_HOT = "hotBooks";
	public static final String SESSION_RECENT = "recentBooks";
	public static final String SESSION_CART = "cart";
	public static final String SESSION_ORDERS = "orders";
	public static final String SESSION_ORDERS_ADDRESS = "ordersAddress";
	public static final String SESSION_ORDERS_BOOKS = "ordersBooks";
	public static final String SESSION_URL = "url";
	public static final String SESSION_PARAMETER_NAMES = "parameterNames";
	public static final String SESSION_PARAMETER_VALUES = "parameterValues";
	
	public static final String SESSION_ADMIN = "admin";
	public static final String SESSION_BOOKS_ADMIN = "booksAdmin";
	
	public static final String PREFERENCES_FILE_NAME = "preferences.properties";
	public static final String HOTBOOKS_DATE = "hotbooks.date";
	public static final String HOTBOOKS_THRESHOLD = "hotbooks.threshold";
	public static final String RECENTBOOKS_DATE = "recentBooks.date";
	public static final String INDEX_PAGE_PATH = "indexPagePath";
	public static final String LOGIN_PAGE_PATH = "loginPagePath";
	public static final String FRONT_LOGIN_POST_URL = "frontLoginPostUrl";
	public static final String REQUIRE_LOGIN_PATH = "requireLoginPath";
	public static final String BACK_NAMESPACE = "backNamespace";
	public static final String BACK_LOGIN_POST_URL = "backLoginPostUrl";
	
}
